package com.cd.university.config.security.validate.sms;

import com.aliyuncs.exceptions.ClientException;
import org.springframework.web.context.request.ServletWebRequest;

/**
 * 可能会有多个短信发送商
 * @author 陈栋
 * @create 2021/9/11 19:38
 */
public interface SmsCodeSender {
    /**
     * @param mobile 接收人电话
     * @param code 短信验证码
     */
    public void send(String mobile, String code, ServletWebRequest request) throws ClientException;
}
